package com.lmf.cloud.service;

import com.lmf.cloud.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lmf.cloud.resp.ResultData;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuMingFu
 * @since 2024-08-01
 */
public interface TOrderService extends IService<TOrder> {

    /**
     * 获取所有订单信息
     *
     * @return
     * @author LiuMingFu
     * @date 2024/8/1
     */
    ResultData<List<TOrder>> getAllOrder(Long userId);

    /**
     * 创建订单
     *
     * @param
     * @return
     * @author LiuMingFu
     * @date 2024/8/1
     */
    ResultData<Boolean> createOrder(TOrder tOrder);
}
